package com.ruoyi.web.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.web.domain.Experts;
import com.ruoyi.web.mapper.ExpertsMapper;
import com.ruoyi.web.service.IExpertsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 专家信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-31
 */
@Service
public class ExpertsServiceImpl extends ServiceImpl<ExpertsMapper, Experts> implements IExpertsService
{
    @Autowired
    private ExpertsMapper expertsMapper;

    /**
     * 查询专家信息
     * 
     * @param expertId 专家信息主键
     * @return 专家信息
     */
    @Override
    public Experts selectExpertsByExpertId(Long expertId)
    {
        return expertsMapper.selectExpertsByExpertId(expertId);
    }

    /**
     * 查询专家信息列表
     * 
     * @param experts 专家信息
     * @return 专家信息
     */
    @Override
    public List<Experts> selectExpertsList(Experts experts)
    {
        return expertsMapper.selectExpertsList(experts);
    }

    /**
     * 新增专家信息
     * 
     * @param experts 专家信息
     * @return 结果
     */
    @Override
    public int insertExperts(Experts experts)
    {

        return expertsMapper.insertExperts(experts);
    }

    /**
     * 修改专家信息
     * 
     * @param experts 专家信息
     * @return 结果
     */
    @Override
    public int updateExperts(Experts experts)
    {
        return expertsMapper.updateExperts(experts);
    }

    /**
     * 批量删除专家信息
     * 
     * @param expertIds 需要删除的专家信息主键
     * @return 结果
     */
    @Override
    public int deleteExpertsByExpertIds(Long[] expertIds)
    {
        return expertsMapper.deleteExpertsByExpertIds(expertIds);
    }

    /**
     * 删除专家信息信息
     * 
     * @param expertId 专家信息主键
     * @return 结果
     */
    @Override
    public int deleteExpertsByExpertId(Long expertId)
    {
        return expertsMapper.deleteExpertsByExpertId(expertId);
    }
}
